package com.gzl.exercise;

import org.junit.jupiter.api.Test;

/**
 * @PROJECT_NAME: exercise
 * @NAME: comprehensive
 * @DESCRIPTION:
 * @USER: gaozengliang
 * @DATE: 2024/4/24
 */
public class Comprehensive {

    @Test
    void consume(){
//        int m = 5;
//        int k = 3;

        int m = 10;
        int k = 6;

        int days = 0;
        int mk = 0;
        while (m>0){
            m--;
            days++;
            mk++;
            if (mk%k==0){
                m++;
            }
        }

        System.out.println(days);
    }
}
